#ifndef UBUS_BRIDGE_H
#define UBUS_BRIDGE_H
#include "ubus_common.h"

enum {
        BRIDGE_INFO,
        __BRIDGE_INFO_MAX,
} ;
static const struct blobmsg_policy get_bridge_info_policy[__BRIDGE_INFO_MAX] = {
        [BRIDGE_INFO] = { .name = "ip", .type = BLOBMSG_TYPE_STRING },
}; 

/**
 * 获取MPPT控制器供电控制模式
 */
int ubus_get_bridge_info(struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg);

#endif